package com.genius.framework.multitenancy.client;

import com.genius.framework.multitenancy.annotation.MultiTenancyFeignClient;
import com.genius.framework.multitenancy.config.ScheduleTaskClientFallbackConfig;
import feign.Param;
import feign.RequestLine;

import java.net.URI;
import java.util.List;
import java.util.Map;

@MultiTenancyFeignClient(name = "scheduleTaskClient", fallback = ScheduleTaskClientFallbackConfig.class)
public interface ScheduleTaskClient {

    @RequestLine("GET /task/class")
    List<Map<String, String>> getCommonScheduleTaskBean(URI uri);

    @RequestLine("GET /task/method/{className}")
    List<Map<String, Object>> getCommonScheduleTaskMethod(URI uri, @Param("className") String className);
}
